/*
 * @Description: http 请求配置
 * @Author: oscar
 * @Date: 2021-12-09 21:20:28
 */

/**
 * 获取签名密钥
 * @param {String} key
 * @return {Object} object
 */
export const getApiKey = (key) => {
  const config = {
    appkey: "Tiofbf4tzwYIK5loHI5Uz1HtWNQ5nzhF",
    otherKey: '其它密钥'
  }
  if(key) {
    return config[key]
  }
  return config.appkey
};

/**
 * 校验接口路径是否属于白名单，不需要校验TOKEN值
 * @param {String} apiUrl api 路径
 * @return {Boolean} true/false
 */
export const getWhiteApi = (apiUrl) => {
  const whiteApis = [
    //api.path.name
  ];
  return whiteApis.includes(apiUrl)
};
